<?php

	require_once("../../../include/connect.php");

	$query = mysql_query(" SELECT id,name,degree FROM teachers WHERE name != '' ");
	
	$data[] = array();
	
	if($query)
	{
		while($row = mysql_fetch_array($query))
			$data[] = $row;
		
		header("Content-type: application/json");
		echo json_encode($data);
	}

?>